package cn.kgc.mapper;

import cn.kgc.pojo.Category;

import java.util.List;

public interface CategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);


    /**
     * 等级加载1
     */
    List<Category> load1();

    List<Category> load2(String parentID);

    List<Category> load3(String parentID);

}